/**
 * @author Lars
 */

var NG_util = new function()
{
	this.getActiveDocument = function()
	{
		const CC = Components.classes;
    	const CI = Components.interfaces;
    	var win = CC["@mozilla.org/appshell/window-mediator;1"]
                .getService(CI.nsIWindowMediator)
                .getMostRecentWindow("navigator:browser");
      
		return win.gBrowser.contentDocument;
	}

}